package com.ruoyi.forum.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ForumUpdateEmail implements Serializable {

    private static final long serialVersionUID = 1L;

    //    @NotBlank(message = "邮箱地址不能为空")
    private Long id;

    //    @NotNull(message = "邮箱地址不能为空")
    @NotBlank(message = "邮箱地址不能为空")
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String code;

}
